﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Sundry.Areas.WebApi.Models
{
    /// <summary>
    /// 分页请求类
    /// </summary>
    public class PageModel
    {
        /// <summary>
        /// 开始数字
        /// </summary>
        [Required(ErrorMessage="开始数字不能为空")]
        [Range(0, int.MaxValue, ErrorMessage = "请输入正确的范围")]
        public int StartNum { get; set; }
        /// <summary>
        /// 页长
        /// </summary>
        [Required(ErrorMessage = "页长不能为空")]
        [Range(0, int.MaxValue, ErrorMessage = "请输入正确的范围")]
        public int PageSize { get; set; }
    }
}